package com.ruoyi.project.dj.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.dj.mapper.DjThemePartyDayMapper;
import com.ruoyi.project.dj.domain.DjThemePartyDay;
import com.ruoyi.project.dj.service.IDjThemePartyDayService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 主题党日Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-15
 */
@Service
public class DjThemePartyDayServiceImpl implements IDjThemePartyDayService 
{
    @Autowired
    private DjThemePartyDayMapper djThemePartyDayMapper;

    /**
     * 查询主题党日
     * 
     * @param id 主题党日ID
     * @return 主题党日
     */
    @Override
    public DjThemePartyDay selectDjThemePartyDayById(Long id)
    {
        return djThemePartyDayMapper.selectDjThemePartyDayById(id);
    }

    /**
     * 查询主题党日列表
     * 
     * @param djThemePartyDay 主题党日
     * @return 主题党日
     */
    @Override
    public List<DjThemePartyDay> selectDjThemePartyDayList(DjThemePartyDay djThemePartyDay)
    {
        return djThemePartyDayMapper.selectDjThemePartyDayList(djThemePartyDay);
    }

    /**
     * 新增主题党日
     * 
     * @param djThemePartyDay 主题党日
     * @return 结果
     */
    @Override
    public int insertDjThemePartyDay(DjThemePartyDay djThemePartyDay)
    {
        return djThemePartyDayMapper.insertDjThemePartyDay(djThemePartyDay);
    }

    /**
     * 修改主题党日
     * 
     * @param djThemePartyDay 主题党日
     * @return 结果
     */
    @Override
    public int updateDjThemePartyDay(DjThemePartyDay djThemePartyDay)
    {
        return djThemePartyDayMapper.updateDjThemePartyDay(djThemePartyDay);
    }

    /**
     * 删除主题党日对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteDjThemePartyDayByIds(String ids)
    {
        return djThemePartyDayMapper.deleteDjThemePartyDayByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除主题党日信息
     * 
     * @param id 主题党日ID
     * @return 结果
     */
    @Override
    public int deleteDjThemePartyDayById(Long id)
    {
        return djThemePartyDayMapper.deleteDjThemePartyDayById(id);
    }
}